﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Threading.Tasks;
using MyFitness.Model;

namespace MyFitness.View
{
    public partial class MVCForm<U> : Form 
    {
        #region Declared Variables
        protected User user;
        #endregion

        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="u">A valid User.</param>
        public MVCForm(User u)
        {
            // Ensures a valid user was passed into the function otherwise the form will exit.
            if (u != null)
            {
                user = u;
            }
            else
                Close();
        }
    }
}
